package com.ccc3gc.mysystem.mapper;

import com.ccc3gc.mysystem.VO.StaffVO;
import com.ccc3gc.mysystem.bean.Staff;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StaffMapper {
    //查询配送员列表
    List<Staff> selectStaff(Staff staff);
    //新增配送员
    int insterStaff(Staff staff);
    //修改配送员信息
    int updateStff(Staff staff);
    //根据id删除配送员
    int deleteStaffById(int staffId);
    //批量删除
    int deleteStaffByIds(List<Integer> staffIds);
    //根据Id查询配送员
    Staff selectStaffById(int staffId);
    //查询配送员详细信息通过Id
    StaffVO staffInfoById(int staffId);
}
